public class 求1_100之间的偶数和 {
    public static void main(String[] args)
    {
        sum();
    }
    public static void sum(){
        int num=1,num_sum=0;
        while (num<101){
            if (num%2==0)
                num_sum+=num;
            System.out.println(num+"\t"+num_sum);
            num++;
        }
        System.out.println("1-100之间的偶数和："+num_sum);
    }
}
